<ui:composition template="../../templates/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="content-center">
		<h:form rendered="#{controleBean.usuario.usuario}">
			<h3>
				<h:outputText value="Cadastro Chamado Sem Assist&#234;ncia" />
			</h3>
			<p:separator />
			<br />

			<p:panelGrid columns="2">
				<h:outputText value="Tipo do Problema" />
				<p:selectOneMenu value="#{controleBean.titulo}" required="true">
					<f:selectItem itemLabel="Selecione uma op&#231;&#227;o" />
					<f:selectItem itemLabel="Computador" itemValue="Computador" />
					<f:selectItem itemLabel="Programas" itemValue="Programas" />
					<f:selectItem itemLabel="Internet/Redes" itemValue="Internet/Redes" />
					<f:selectItem itemLabel="Impressoras" itemValue="Impressoras" />
					<f:selectItem itemLabel="Outros" itemValue="Outros" />
				</p:selectOneMenu>
				<h:outputText value="Descri&#231;&#227;o" />
				<p:inputTextarea rows="4" cols="80" maxlength="255"
					value="#{controleBean.descricao}" counter="counter"
					counterTemplate="{0} characteres restantes." />
				<h:outputText value="" />
				<h:outputText id="counter" />
				<f:facet name="footer">
					<p:commandButton action="#{controleBean.cadastrarSolicitacao}"
						value="Envia" />
				</f:facet>

			</p:panelGrid>

		</h:form>
	</ui:define>
</ui:composition>